﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace PeiYue.Model.Models.Crm
{
    /// <summary>
    /// 客户结算信息
    /// </summary>
    [SugarTable("oms_crm_customer_account")]
    public class AccountDao:BaseDao
    {
        public long unit_id { get; set; }
        /// <summary>
        /// 客户id
        /// </summary>
        public long customer_id { get; set; }
        /// <summary>
        /// 当结算方式为独立结算时，此属性应为大于100000000001的数值
        /// </summary>
        public long shop_id { get; set; }
        /// <summary>
        /// 付款账号
        /// </summary>
        public string pay_account { get; set; }
        /// <summary>
        /// 开票类型
        /// </summary>
        public int invoice_types { get; set; }

        /// <summary>
        /// 结算方式
        /// </summary>
        public int payment_method { get; set; }
        /// <summary>
        /// 结算周期
        /// </summary>
        public int payment_period { get; set; }
        /// <summary>
        /// 支付类型
        /// </summary>
        public int payment_type { get; set; }
        /// <summary>
        /// 开户行
        /// </summary>
        public string opening_bank { get; set; }
        /// <summary>
        /// 开户行账号
        /// </summary>
        public string bank_amount { get; set; }
        /// <summary>
        /// 开户地址
        /// </summary>
        public string bank_address { get; set; }
        /// <summary>
        /// 税务登记证号
        /// </summary>
        public string tax_number { get; set; }
        /// <summary>
        /// 注册地址
        /// </summary>
        public string registr_address { get; set; }
        /// <summary>
        /// 注册电话
        /// </summary>
        public string registr_phone { get; set; }
        /// <summary>
        /// 开票联系人
        /// </summary>
        public string invoice_contact { get; set; }
        /// <summary>
        /// 开票联系电话
        /// </summary>
        public string invoice_phone { get; set; }
        /// <summary>
        /// 电子发票邮箱地址
        /// </summary>
        public string invoice_email { get; set; }
        /// <summary>
        /// 开户行账户名
        /// </summary>
        public string account_name { get; set; }

        /// <summary>
        /// 年度（12个月）营业额
        /// </summary>
        public int amount_12m { get; set; }
        /// <summary>
        /// 6个月平均营业额
        /// </summary>
        public int amount_6m { get; set; }
        /// <summary>
        /// 6个月平均采购额食材
        /// </summary>
        public int amount_6m_sc { get; set; }
        /// <summary>
        /// 6个月平均采购额耗材
        /// </summary>
        public int amount_6m_hc { get; set; }
        /// <summary>
        /// 6个月平均采购额酒水饮料
        /// </summary>
        public int amount_6m_js { get; set; }
        /// <summary>
        /// 超时是否可以下单
        /// </summary>
        public bool overtime_no_order { get; set; }
        /// <summary>
        /// 1：天，2：月
        /// </summary>
        public int bill_types { get; set; }
        public DateTime bill_timef { get; set; }
        public DateTime bill_timet { get; set; }
        /// <summary>
        /// 账期金额
        /// </summary>
        public int bill_amt { get; set; }
        /// <summary>
        /// 账期值
        /// </summary>
        public int bill_value { get; set; }
    }
}
